package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 商品-服务(Serve)表实体类
 *
 * @author yxy
 * @since 2024-10-22 16:03:29
 */
@Data
@ApiModel("商品-服务")
@TableName(value = "tb_serve")
public class Serve extends Model<Serve> implements Serializable {
    private static final long serialVersionUID = -94022172500465105L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("商家")
    private Long merchantId;
    @ApiModelProperty("商家名称")
    @TableField(exist = false)
    private String merchantName;
    @ApiModelProperty("服务浏览时间")
    @TableField(exist = false)
    private Long goodsViewId;
    @ApiModelProperty("服务分类-多级选择")
    private String type;

    @ApiModelProperty("价格标签0准确价格 1建议价格 2区间价格 3咨询商家")
    private Integer priceTag;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("主图")
    private String img;
    @ApiModelProperty("图片-多张")
    @TableField(exist = false)
    private List<String> imgArr;
    @ApiModelProperty("描述")
    private String remark;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("设备状态0上架 1下架 2审核中")
    private Integer status;

    @ApiModelProperty("服务标签0特惠服务 1热门服务 2推荐服务 3视频号")
    private Integer serveTag;

    @TableField(exist = false)
    @ApiModelProperty("商品类型(0设备 1服务)")
    private Integer  goodType = 1;

    @ApiModelProperty(value = "审核状态：0-待审核，1-一审通过，2-审核通过，3-驳回")
    private String auditStatus;
    @ApiModelProperty("仓库数量")
    private Integer inventory;
}
